import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//代收付业务收付款确认查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentComfirm/confirmCollectionPaymentQuery/search`,
}



// 代收付业务收付款确认查询明细
export function confirmCollectionPaymentQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentComfirm/confirmCollectionPaymentQuery/detail`,
    method: 'get',
    params:{id:data.id}

  })
}



//代收付业务收付款确认录入
export const apiUrlConfigEntryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentComfirm/confirmCollectionPaymentEntry/search`,
}


//代收付业务收付款确认录入381
export const apiUrlConfigEntryQuery381 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentComfirm/confirmCollectionPaymentEntry/search381`,
}


//代收付业务收付款确认录入382
export const apiUrlConfigEntryQuery382 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentComfirm/confirmCollectionPaymentEntry/search382`,
}

// 代收付业务收付款确认录入
export function confirmCollectionPaymentEntryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentComfirm/confirmCollectionPaymentEntry/detail`,
    method: 'get',
    params:{id:data.id,pkgNo:data.pkgNo}

  })
}

// 代收付业务收付款确认录入提交
export function confirmCollectionPaymentEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentComfirm/confirmCollectionPaymentEntry/save`,
    method: 'post',
    data:data,

  })
}
